﻿using UnityEngine;

/**
* obstruction controller
* @author lichenyi
* 2018-07-16 14:55:06
*/
public class Obstruction : MonoBehaviour
{

	public Rigidbody rb;
	
	// Use this for initialization
	void Start ()
	{
		rb = GetComponent<Rigidbody>();
	}

	private void OnTriggerEnter(Collider other)
	{
		if(other.GetComponent("Player") != null)
			Destroy(gameObject);
	}
}
